import * as echarts from '../../../components/ec-canvas/echarts'
export default {
  // 综合分析
  comprehensiveAnalysis: {
    legend: {
      show: false
    },
    radar: {
      center: ['50%', '52%'],
      radius: 99,
      triggerEvent: true,
      name: {
        color: '#555555',
        fontSize: 13,
        formatter: function (value) {
          return value
        }
      },
      splitArea: {
        areaStyle: {
            color: [ '#FFFFFF', '#fbfdff', ].reverse(),
        }
      },
      nameGap: '12',
      indicator: [{name: '熟练度', max: 100}, {name: '完整度', max: 100}, {name: '服务表现力', max: 100}, {name: '服务应变力', max: 100}, {name: '准确度', max: 100}],
      splitArea: {
        show: false,
        areaStyle: {
        }
      },
      axisLine: {
        lineStyle: {
          width: 1,
          color: '#f1f2f3'
        }
      },
      splitLine: {
        lineStyle: {
          width: 1,
          color: '#f1f2f3'
        }
      }
    },
    series: [{
      name: '区域分布',
      type: 'radar',
      symbol: 'circle', // 拐点的样式，还可以取值'rect','angle'等
      symbolSize: 8, // 拐点的大小
      areaStyle: {
        normal: {
          color: '#0099F7'
        }
      },
      symbol: "none",
      itemStyle: {
        color: "#fff",
        borderColor: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
            offset: 0,
            color: '#0061E3'
        }, {
            offset: 1,
            color: '#0061E3'
        }], false),
        borderWidth: 4,
        opacity: 1
    },
      lineStyle: {
        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
            offset: 0,
            color: '#0061E3'
        }, {
            offset: 1,
            color: '#0061E3'
        }], false),
        width: 3
    },
      data: [{
        value: [],
        name: '人数'
      }]
    }]
  },
  // 成绩统计
  achievementStatistics: {
    backgroundColor: '#fff',
    color: ['#266ABE', '#3AA0FF', '#43C9C3', '#907FFF'],
    series: [{
        type: 'pie',
        silent: true,
        label: {
          show: true,
          fontSize: '30',
          position: 'center',
          formatter: (params) => {
            return `{score|100}\n{title|总次数}`
          },
          rich: {
            score: {
              color: '#222222',
              fontSize: 22,
              fontWeight: 'bold',
              lineHeight: 30
            },
            title: {
              color: '#999999',
              fontSize: 12,
              fontWeight: 'normal'
            }
          }
        },
        radius: ['100%', '60%'], //内圈半径，外圈半径
        center: ['50%', '50%'],
        data: []
    }]
  },
  // 陪练统计
  trainingStatistics: {
    backgroundColor: '#fff',
    color: ['#3AA0FF', '#43C9C3'],
    series: [{
        type: 'pie',
        silent: true,
        label: {
          show: true,
          fontSize: '30',
          fontWeight: 'bold',
          position: 'center',
          formatter: (params) => {
            return `{score|100}\n{title|总次数}`
          },
          rich: {
            score: {
              color: '#222222',
              fontSize: 22,
              fontWeight: 'bold',
              lineHeight: 30
            },
            title: {
              color: '#999999',
              fontSize: 12,
              fontWeight: 'normal'
            }
          }
        },
        radius: ['100%', '60%'], //内圈半径，外圈半径
        center: ['50%', '50%'],
        data: []
    }]
  },
  // 约访统计
  vitalStatistics: {
    backgroundColor: '#fff',
    color: ['#4781C8', '#58AFFF', '#60D2CC', '#907FFF', '#F19C9C'],
    series: [{
        type: 'pie',
        silent: true,
        label: {
          show: true,
          fontSize: '30',
          fontWeight: 'bold',
          position: 'center',
          formatter: (params) => {
            return `{score|100}\n{title|总次数}`
          },
          rich: {
            score: {
              color: '#222222',
              fontSize: 22,
              fontWeight: 'bold',
              lineHeight: 30
            },
            title: {
              color: '#999999',
              fontSize: 12,
              fontWeight: 'normal'
            }
          }
        },
        radius: ['100%', '60%'], //内圈半径，外圈半径
        center: ['50%', '50%'],
        data: []
    }]
  },
  // 面谈统计
  interviewStatistics: {
    backgroundColor: '#fff',
    color: ['#4781C8', '#58AFFF', '#60D2CC', '#907FFF', '#F19C9C'],
    series: [{
        type: 'pie',
        silent: true,
        label: {
          show: true,
          fontSize: '30',
          fontWeight: 'bold',
          position: 'center',
          formatter: (params) => {
            return `{score|100}\n{title|总次数}`
          },
          rich: {
            score: {
              color: '#222222',
              fontSize: 22,
              fontWeight: 'bold',
              lineHeight: 30
            },
            title: {
              color: '#999999',
              fontSize: 12,
              fontWeight: 'normal'
            }
          }
        },
        radius: ['100%', '60%'], //内圈半径，外圈半径
        center: ['50%', '50%'],
        data: []
    }]
  }
}